<%@ page language="java" import="java.util.*,shop.dao.*,shop.entity.*" 	pageEncoding="utf-8"%>
<%
  	request.setCharacterEncoding("utf-8");
    String c_ID =request.getParameter("c_ID");

	
	CommentDao commentdao = new CommentDao();
	

	

		int count = commentdao.deleteComment(c_ID);
		if (count > 0) {
			out
			.print("<script type='text/javascript'>alert('删除评论成功');location.replace('Comment_list.jsp');</script>");
		} else {
			out
			.print("<script type='text/javascript'>alert('删除评论失败。');location.replace('Comment_list.jsp');</script>");
		}
		
	
%>
